package com.forum.module.system.service.user_role;

import com.forum.module.system.dal.dataobject.user_role.UserRoleDO;
import com.forum.module.system.dal.mysql.user_role.UserRoleMapper;
import org.springframework.stereotype.Service;

/**
 * 功能:
 * 作者:ouyzh
 * 日期:2025/3/15 20:46
 */
@Service
public class UserRoleServiceImpl implements UserRoleService{
    private final UserRoleMapper userRoleMapper;

    public UserRoleServiceImpl(UserRoleMapper userRoleMapper) {
        this.userRoleMapper = userRoleMapper;
    }
    @Override
    public UserRoleDO selectByUserId(Long UserId) {
        return userRoleMapper.selectByUserId(UserId);
    }
}
